package sort;

import java.util.Arrays;

/**
 * @author haomin
 * @date 2022/03/15 22:23
 **/
public class SortTest {
    public static void main(String[] args) {
        int n = 10;
        int[] arr = SortHelper.generateRandomArray(n,0,10);
        int[] arrCopy1 = SortHelper.arrCopy(arr);
        int[] arrCopy2 = SortHelper.arrCopy(arr);
        int[] arrCopy3 = SortHelper.arrCopy(arr);
        int[] arrCopy4 = SortHelper.arrCopy(arr);
        int[] arrCopy5 = SortHelper.arrCopy(arr);
        int[] arrCopy6 = SortHelper.arrCopy(arr);
        int[] arrCopy7 = SortHelper.arrCopy(arr);
        int[] arrCopy8 = SortHelper.arrCopy(arr);
        int[] arrCopy9 = SortHelper.arrCopy(arr);




//        SortHelper.testSort("selectionSort",arr);
//        SortHelper.testSort("selectionSortOP",arrCopy1);
//        SortHelper.testSort("insertionSort",arrCopy2);
//        SortHelper.testSort("insertionSortBS",arrCopy3);
//        SortHelper.testSort("shellSort",arrCopy4);
//        SortHelper.testSort("mergeSort",arrCopy5);
//        SortHelper.testSort(("quickSort"),arrCopy6);
//        SortHelper.testSort(("quickSort2"),arrCopy7);
//        SortHelper.testSort(("quickSort3"),arrCopy8);
        int[] a = {4,2,1,3};
        SortHelper.testSort(("ss"),a);
        System.out.println(Arrays.toString(a));

    }
}